alert("Words-Chinese Pinyin Dictionary, Created by Huang Jason. \nGet Chinese translation by double-click, or rightward and downward selection.\n\n");
},
showHelp: function() {
alert("Help:\n\nTo de/activate the dictionary ->\n\n1.Click the [w] icon in the Status Bar Panel\n2.Right click the [w] icon. \n\nTo show translation & definition ->\n\n1. Double-click \n2. Make selection rightward and downward.\n\n");
},
goHome: function() {
var win = window.top.getBrowser().selectedBrowser.contentWindow;
win.open("http://www.words-chinese.com/");
},
bugReport: function(){
var win = window.top.getBrowser().selectedBrowser.contentWindow;
win.open("http://www.words-chinese.com/contact");
},
openHistory: function(){
if(wordschinesepopupdictionary.userId){
var win = window.top.getBrowser().selectedBrowser.contentWindow;
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("extensions.wordschinesedict.");
if (prefs.prefHasUserValue("selectedLanguageId")) {
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("extensions.wordschinesedict.");